cmake_minimum_required(VERSION 3.16)
set(CMAKE_CXX_STANDARD 17)
project(RADSim)

set(CMAKE_BINARY_DIR "./build/")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})

#SET(DESIGN "dlrm" CACHE STRING "Design directory to be compiled. Must be under rad-flow/rad-sim/example-designs")
FOREACH(DESIGN_NAME ${DESIGN_NAMES})
    #MESSAGE("<<${DESIGN_NAME}>>")
    message(STATUS "Compiling the ${DESIGN_NAME} design")
ENDFOREACH()

add_subdirectory(sim)
add_subdirectory(example-designs)

set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wuninitialized -Weffc++ -pedantic")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
